package com.link2room.bumblebee;

import com.link2room.common.mns.Worker;
import com.link2room.common.mns.listener.MnsListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;

import javax.annotation.Resource;

/**
 * 加载mns消息服务轮询服务
 * Created by LN on 2016/8/25.
 */
//@Component  //使用时，打开注释
public class BumblebeeMNSPollingStartupRunner implements CommandLineRunner {

    @Resource //需要实现此接口
    private Worker testRunner;

    @Resource
    private MnsListener defaultMnsListener;

    private static Logger logger = LoggerFactory.getLogger(BumblebeeMNSPollingStartupRunner.class);
    @Override
    public void run(String... strings) throws Exception {
//        defaultMnsListener.startPolling("TestLog-aeribots",testRunner,10);
    }
}
